package com.cjm.one.model.payment.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.cjm.one.model.base.BaseEnum;
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum PayStatus implements BaseEnum {
    /**
     *  0-处理中 1-成功 2-失败
     */
    @JsonEnumDefaultValue
    PROCESSING(0, "处理中"),
    SUCCESS(1, "成功"),
    FAIL(2,"失败");

    @EnumValue
    @JsonValue
    private int code;
    private String message;

    PayStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }
    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
